/**
 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
 *
 * Description: SLE UART sample of client. \n
 *
 * History: \n
 * 2023-04-03, Create file. \n
 */
#ifndef SLE_ONE_H
#define SLE_ONE_H

// #include "sle_ssap_client.h"

// void sle_uart_client_init(ssapc_notification_callback notification_cb, ssapc_indication_callback indication_cb);

// void sle_uart_start_scan(void);

// uint16_t get_g_sle_uart_conn_id(void);

// ssapc_write_param_t *get_g_sle_uart_send_param(void);
// void sle_uart_notification_cb(uint8_t client_id, uint16_t conn_id, ssapc_handle_value_t *data, errcode_t status);
// void sle_uart_indication_cb(uint8_t client_id, uint16_t conn_id, ssapc_handle_value_t *data, errcode_t status);


#include "common_def.h"
#include "soc_osal.h"
#include "sle_device_discovery.h"
#include "sle_connection_manager.h"
#include "sle_one.h"

#define MY_SLE_MTU_SIZE_DEFAULT  520
#define MY_SLE_UART_SERVER_NAME  "my_uart_server"
#define MY_UART_CLIENT_LOG       "[my uart client]"

#ifdef __cplusplus
extern "C" {
#endif

void my_sle_uart_client_init();
void my_sle_uart_client_start();
void my_sle_uart_client_write(uint8_t *data, uint16_t length);
void my_sle_uart_client_close();

#ifdef __cplusplus
}
#endif

#endif